package com.sz.admin.role.pojo.po;

import com.mybatisflex.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.io.Serial;
import com.sz.mysql.EntityChangeListener;

/**
* <p>
* 系统角色定义
* </p>
*
* @author sz-admin
* @since 2025-06-30
*/
@Data
@Table(value = "role", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "系统角色定义")
public class Role implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @Schema(description ="角色ID（格式：R+3位数字，如R001）")
    private String roleId;

    @Schema(description ="角色名称")
    private String roleName;

    @Schema(description ="创建时间 (格式: yy-mm-dd:hh-mm-ss)")
    private String createdAt;

    @Schema(description ="更新时间 (格式: yy-mm-dd:hh-mm-ss)")
    private String updatedAt;

    @Schema(description ="删除标记 0:正常 1:删除")
    private Integer isDeleted;

}